package com.yj_app.qualitytest.activity.home.homecontract;

import com.yj_app.qualitytest.base.mvp.BaseModel;
import com.yj_app.qualitytest.base.mvp.BasePresenter;
import com.yj_app.qualitytest.base.mvp.BaseView;
import com.yj_app.qualitytest.callback.DialogCallback;
import com.yj_app.qualitytest.callback.SyncRes;
import com.yj_app.qualitytest.info.BaseInfo;
import com.yj_app.qualitytest.info.HeadBoyInfo;
import com.yj_app.qualitytest.info.QLineInfo;
import com.yj_app.qualitytest.info.QScoreInfo;
import com.yj_app.qualitytest.info.QStandardInfo;
import com.yj_app.qualitytest.info.QrelationshipInfo;
import com.yj_app.qualitytest.info.TeamInfo;
import com.yj_app.qualitytest.info.WorkSpaceInfo;
import com.yj_app.qualitytest.info.WorkerInfo;

import java.util.List;

public interface HomeContract {
    interface Model extends BaseModel {
        void getData(String qStandardClass, String corp,DialogCallback<BaseInfo<List<QStandardInfo>>> stringDialogCallback);
        void SynQStandard(String qStandardClass, String corp,DialogCallback<BaseInfo<List<QScoreInfo>>> stringDialogCallback);
        void test(String qStandardClass, String corp,DialogCallback<String> stringDialogCallback);

        void syncLines(String qLines, String corp, DialogCallback<BaseInfo<List<QLineInfo>>> baseInfoDialogCallback);

        void syncChejian(String qWorkshop, String corp, DialogCallback<BaseInfo<List<WorkSpaceInfo>>> baseInfoDialogCallback);

        void syncTeam(String qTeam, String corp, DialogCallback<BaseInfo<List<TeamInfo>>> baseInfoDialogCallback);

        void syncHeadBoy(String qHead, String corp, DialogCallback<BaseInfo<List<HeadBoyInfo>>> baseInfoDialogCallback);

        void syncWorker(String qWorker, String corp, DialogCallback<BaseInfo<List<WorkerInfo>>> baseInfoDialogCallback);

        void syncQrelationship(String qrelationship, String corp, DialogCallback<BaseInfo<List<QrelationshipInfo>>> baseInfoDialogCallback);

        void getCommon(String s, DialogCallback<String> stringDialogCallback);
    }

    interface View extends BaseView {
    }

    interface Presenter extends BasePresenter {
        void getData(String standardClass, String corp, SyncRes syncRes);

        void SynQStandard(String qStandard, String corp, SyncRes syncRes);
        void test(String qStandard, String corp, SyncRes syncRes);

        void syncLines(String qLines, String corp, SyncRes syncRes);

        void syncChejian(String qWorkshop, String corp, SyncRes syncRes);

        void syncTeam(String qTeam, String corp, SyncRes syncRes);

        void syncHeadBoy(String qHead, String corp, SyncRes syncRes);

        void syncWorker(String qWorker, String corp, SyncRes syncRes);

        void syncQrelationship(String qrelationship, String corp, SyncRes syncRes);


//        void getData(String standardClass, String corp, SyncRes syncRes);
//
//        void SynQStandard(String qStandard, String corp, SyncRes syncRes);
//        void test(String qStandard, String corp, SyncRes syncRes);
//
//        void syncLines(String qLines, String corp, SyncRes syncRes);
//
//        void syncChejian(String qWorkshop, String corp, SyncRes syncRes);
//
//        void syncTeam(String qTeam, String corp, SyncRes syncRes);
//
//        void syncHeadBoy(String qHead, String corp, SyncRes syncRes);
//
//        void syncWorker(String qWorker, String corp, SyncRes syncRes);
//
//        void syncQrelationship(String qrelationship, String corp, SyncRes syncRes);
    }
}
